﻿var intervalId = null;
function ps_Posting()
{
	txt.set_Value("Starting upload...\r\n");
	intervalId = setInterval(interval_Callback, 1000);
}
function ps_Response()
{
	clearInterval(intervalId);
	intervalId = null;
}
function interval_Callback()
{
	fileUpload.GetProgress(fileUpload_ProgressCallback);
}
function fileUpload_ProgressCallback(progress)
{
	txt.set_Value(txt.get_Value() + "Uploaded: " + progress.FileUploaded + "/" + progress.FileSize + "\r\n");
}
